package com.hunan.api.catv.entity.po;

import java.io.Serializable;

/**
 * @author
 */
public class SystemRole implements Serializable {
    /**
     * 系统用户ID
     */
    private Integer sysRoleId;

    /**
     * 角色名称
     */
    private String sysRoleName;

    /**
     * 状态 0:无效 1:正常
     */
    private Integer state;

    private static final long serialVersionUID = 1L;

    public Integer getSysRoleId() {
        return sysRoleId;
    }

    public void setSysRoleId(Integer sysRoleId) {
        this.sysRoleId = sysRoleId;
    }

    public String getSysRoleName() {
        return sysRoleName;
    }

    public void setSysRoleName(String sysRoleName) {
        this.sysRoleName = sysRoleName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SystemRole other = (SystemRole) that;
        return (this.getSysRoleId() == null ? other.getSysRoleId() == null : this.getSysRoleId().equals(other.getSysRoleId()))
                && (this.getSysRoleName() == null ? other.getSysRoleName() == null : this.getSysRoleName().equals(other.getSysRoleName()))
                && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSysRoleId() == null) ? 0 : getSysRoleId().hashCode());
        result = prime * result + ((getSysRoleName() == null) ? 0 : getSysRoleName().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sysRoleId=").append(sysRoleId);
        sb.append(", sysRoleName=").append(sysRoleName);
        sb.append(", state=").append(state);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}